/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package learnjava.jdk.sortedmap;

import java.util.Comparator;

/**
 *
 * @author hitdong
 */
public class PersonComparator implements Comparator<Person>{

    public int compare(Person o1, Person o2) {
        return o1.getWealth()-o2.getWealth();
    }

}
